package f_facade.a_origin;

/**
 * Created by wug on 2016/7/1 0001.
 */
public class Router {
    private String name = "路由器";
    private Electricity electricity;

    public void downloadNewestMovie() {
        if (!electricity.isOn()) {
            return;
        }
        System.out.println(name + "下载今日上新所有电影");
    }

    public void powOn(Electricity electricity) {
        this.electricity = electricity;
    }

}
